/**
  ******************************************************************************
  * @file           : App_Common.h
  * @author         : zhikai_huang
  * @brief          : This file provide common include and define of application
  ******************************************************************************
  * @attention
  *
  * None.
  *
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __APP_COMMON_H
#define __APP_COMMON_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
// #include "ez_config\ez_config.h"
// #include "snc_drv_wdt.h"

/* Exported defines ----------------------------------------------------------*/
    
#define SONIX_APP_OK 0                  /**< Operation succeeded */
#define SONIX_APP_ERROR -1              /**< Unspecified error */
#define SONIX_APP_ERROR_NOTRDY -2       /**< Error because there is something not ready */
#define SONIX_APP_ERROR_INVALID -3      /**< Error because the data is invalid */
#define SONIX_APP_ERROR_PARAMETER -4    /**< Error because the parameter is invalid */
#define SONIX_APP_ERROR_BUSY -5         /**< Error because the resource is using */
#define SONIX_APP_ERROR_TIMEOUT -6      /**< Error because a tiem out action */
#define SONIX_APP_ERROR_NULLBUF -7      /**< Error because a invalid buffer */

#ifdef __cplusplus
}
#endif

#endif /* __APP_COMMON_H */

/********************************* END OF FILE ********************************/
